import React from 'react'
import { withRouter, NavLink } from 'react-router-dom'
import { observer, inject } from 'mobx-react'
import unit from '../hml'
@withRouter //更新数据
@inject('five') //获取数据
@observer //让页面变成响应式
class Top extends React.Component {
    constructor(props) {
        super(props)
    }

    
    componentDidMount(){
        unit.getApi2('/api/userinfo',{}).then((res)=>{
            console.log(res)
        })
    }
    render() {
        return (
            <React.Fragment>
                <div className='header'>
                    
                </div>
                {this.props.five.data}
            </React.Fragment>
        )
    }
}
export default Top

